home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / gnucpio.1 < prev    next >
Text File  |  1995-07-25  |  16KB  |  397 lines

  1.  
  2.  
  3.  
  4.      CCCCPPPPIIIIOOOO((((1111LLLL))))                  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                  CCCCPPPPIIIIOOOO((((1111LLLL))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           cpio - copy files to and from archives
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ccccppppiiiioooo {-o|--create} [-0acvABLV] [-C bytes] [-H format] [-M
  13.           message] [-O [[user@]host:]archive] [-F
  14.           [[user@]host:]archive] [--file=[[user@]host:]archive]
  15.           [--format=format] [--message=message] [--null] [--reset-
  16.           access-time] [--verbose] [--dot] [--append] [--block-
  17.           size=blocks] [--dereference] [--io-size=bytes] [--version] <
  18.           name-list [> archive]
  19.  
  20.           ccccppppiiiioooo {-i|--extract} [-bcdfmnrtsuvBSV] [-C bytes] [-E file]
  21.           [-H format] [-M message] [-R [user][:.][group]] [-I
  22.           [[user@]host:]archive] [-F [[user@]host:]archive]
  23.           [--file=[[user@]host:]archive] [--make-directories]
  24.           [--nonmatching] [--preserve-modification-time] [--numeric-
  25.           uid-gid] [--rename] [--list] [--swap-bytes] [--swap] [--dot]
  26.           [--unconditional] [--verbose] [--block-size=blocks]
  27.           [--swap-halfwords] [--io-size=bytes] [--pattern-file=file]
  28.           [--format=format] [--owner=[user][:.][group]] [--no-
  29.           preserve-owner] [--message=message] [--version] [pattern...]
  30.           [< archive]
  31.  
  32.           ccccppppiiiioooo {-p|--pass-through} [-0adlmuvLV] [-R [user][:.][group]]
  33.           [--null] [--reset-access-time] [--make-directories] [--link]
  34.           [--preserve-modification-time] [--unconditional] [--verbose]
  35.           [--dot] [--dereference] [--owner=[user][:.][group]] [--no-
  36.           preserve-owner] [--version] destination-directory < name-
  37.           list
  38.  
  39.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  40.           This manual page documents the GNU version of ccccppppiiiioooo.  ccccppppiiiioooo
  41.           copies files into or out of a cpio or tar archive, which is
  42.           a file that contains other files plus information about
  43.           them, such as their pathname, owner, timestamps, and access
  44.           permissions.  The archive can be another file on the disk, a
  45.           magnetic tape, or a pipe.  ccccppppiiiioooo has three operating modes.
  46.  
  47.           In copy-out mode, ccccppppiiiioooo copies files into an archive.  It
  48.           reads a list of filenames, one per line, on the standard
  49.           input, and writes the archive onto the standard output.  A
  50.           typical way to generate the list of filenames is with the
  51.           ffffiiiinnnndddd command; you should give ffffiiiinnnndddd the -depth option to
  52.           minimize problems with permissions on directories that are
  53.           unwritable or not searchable.
  54.  
  55.           In copy-in mode, ccccppppiiiioooo copies files out of an archive or
  56.           lists the archive contents.  It reads the archive from the
  57.           standard input.  Any non-option command line arguments are
  58.           shell globbing patterns; only files in the archive whose
  59.           names match one or more of those patterns are copied from
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 3/9/94)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      CCCCPPPPIIIIOOOO((((1111LLLL))))                  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                  CCCCPPPPIIIIOOOO((((1111LLLL))))
  71.  
  72.  
  73.  
  74.           the archive.  Unlike in the shell, an initial `.' in a
  75.           filename does match a wildcard at the start of a pattern,
  76.           and a `/' in a filename can match wildcards.  If no patterns
  77.           are given, all files are extracted.
  78.  
  79.           In copy-pass mode, ccccppppiiiioooo copies files from one directory tree
  80.           to another, combining the copy-out and copy-in steps without
  81.           actually using an archive.  It reads the list of files to
  82.           copy from the standard input; the directory into which it
  83.           will copy them is given as a non-option argument.
  84.  
  85.           ccccppppiiiioooo supports the following archive formats: binary, old
  86.           ASCII, new ASCII, crc, old tar, and POSIX.1 tar.  The binary
  87.           format is obsolete because it encodes information about the
  88.           files in a way that is not portable between different
  89.           machine architectures.  The old ASCII format is portable
  90.           between different machine architectures, but should not be
  91.           used on file systems with more than 65536 i-nodes.  The new
  92.           ASCII format is portable between different machine
  93.           architectures and can be used on any size file system, but
  94.           is not supported by all versions of ccccppppiiiioooo; currently, it is
  95.           only supported by GNU and Unix System V R4.  The crc format
  96.           is like the new ASCII format, but also contains a checksum
  97.           for each file which ccccppppiiiioooo calculates when creating an archive
  98.           and verifies when the file is extracted from the archive.
  99.  
  100.           The tar format is provided for compatability with the ttttaaaarrrr
  101.           program.  It can not be used to archive files with names
  102.           longer than 100 characters, and can not be used to archive
  103.           "special" (block or character devices) files.  The POSIX.1
  104.           tar format can not be used to archive files with names
  105.           longer than 255 characters (less unless they have a "/" in
  106.           just the right place).
  107.  
  108.           By default, ccccppppiiiioooo creates binary format archives, for
  109.           compatibility with older ccccppppiiiioooo programs.  When extracting
  110.           from archives, ccccppppiiiioooo automatically recognizes which kind of
  111.           archive it is reading and can read archives created on
  112.           machines with a different byte-order.
  113.  
  114.           Some of the options to ccccppppiiiioooo apply only to certain operating
  115.           modes; see the SYNOPSIS section for a list of which options
  116.           are allowed in which modes.
  117.  
  118.         OOOOPPPPTTTTIIIIOOOONNNNSSSS
  119.           -_0, --_n_u_l_l
  120.                In copy-out and copy-pass modes, read a list of
  121.                filenames terminated by a null character instead of a
  122.                newline, so that files whose names contain newlines can
  123.                be archived.  GNU ffffiiiinnnndddd is one way to produce a list of
  124.                null-terminated filenames.
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 3/9/94)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      CCCCPPPPIIIIOOOO((((1111LLLL))))                  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                  CCCCPPPPIIIIOOOO((((1111LLLL))))
  137.  
  138.  
  139.  
  140.           -_a, --_r_e_s_e_t-_a_c_c_e_s_s-_t_i_m_e
  141.                Reset the access times of files after reading them, so
  142.                that it does not look like they have just been read.
  143.  
  144.           -_A, --_a_p_p_e_n_d
  145.                Append to an existing archive.  Only works in copy-out
  146.                mode.  The archive must be a disk file specified with
  147.                the -_O or -_F (--_f_i_l_e) option.
  148.  
  149.           -_b, --_s_w_a_p
  150.                In copy-in mode, swap both halfwords of words and bytes
  151.                of halfwords in the data.  Equivalent to -_s_S.  Use this
  152.                option to convert 32-bit integers between big-endian
  153.                and little-endian machines.
  154.  
  155.           -_B   Set the I/O block size to 5120 bytes.  Initially the
  156.                block size is 512 bytes.
  157.  
  158.           --_b_l_o_c_k-_s_i_z_e=_B_L_O_C_K-_S_I_Z_E
  159.                Set the I/O block size to BLOCK-SIZE * 512 bytes.
  160.  
  161.           -_c   Use the old portable (ASCII) archive format.
  162.  
  163.           -_C _I_O-_S_I_Z_E, --_i_o-_s_i_z_e=_I_O-_S_I_Z_E
  164.                Set the I/O block size to IO-SIZE bytes.
  165.  
  166.           -_d, --_m_a_k_e-_d_i_r_e_c_t_o_r_i_e_s
  167.                Create leading directories where needed.
  168.  
  169.           -_E _F_I_L_E, --_p_a_t_t_e_r_n-_f_i_l_e=_F_I_L_E
  170.                In copy-in mode, read additional patterns specifying
  171.                filenames to extract or list from FILE.  The lines of
  172.                FILE are treated as if they had been non-option
  173.                arguments to ccccppppiiiioooo.
  174.  
  175.           -_f, --_n_o_n_m_a_t_c_h_i_n_g
  176.                Only copy files that do not match any of the given
  177.                patterns.
  178.  
  179.           -_F, --_f_i_l_e=_a_r_c_h_i_v_e
  180.                Archive filename to use instead of standard input or
  181.                output.  To use a tape drive on another machine as the
  182.                archive, use a filename that starts with `HOSTNAME:'.
  183.                The hostname can be preceded by a username and an `@'
  184.                to access the remote tape drive as that user, if you
  185.                have permission to do so (typically an entry in that
  186.                user's `~/.rhosts' file).
  187.  
  188.           --_f_o_r_c_e-_l_o_c_a_l
  189.                With -_F, -_I, or -_O, take the archive file name to be a
  190.                local file even if it contains a colon, which would
  191.                ordinarily indicate a remote host name.
  192.  
  193.  
  194.  
  195.      Page 3                                           (printed 3/9/94)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      CCCCPPPPIIIIOOOO((((1111LLLL))))                  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                  CCCCPPPPIIIIOOOO((((1111LLLL))))
  203.  
  204.  
  205.  
  206.           -_H _F_O_R_M_A_T, --_f_o_r_m_a_t=_F_O_R_M_A_T
  207.                Use archive format FORMAT.  The valid formats are
  208.                listed below; the same names are also recognized in
  209.                all-caps.  The default in copy-in mode is to
  210.                automatically detect the archive format, and in copy-
  211.                out mode is "bin".
  212.  
  213.                bin  The obsolete binary format.
  214.  
  215.                odc  The old (POSIX.1) portable format.
  216.  
  217.                newc The new (SVR4) portable format, which supports
  218.                     file systems having more than 65536 i-nodes.
  219.  
  220.                crc  The new (SVR4) portable format with a checksum
  221.                     added.
  222.  
  223.                tar  The old tar format.
  224.  
  225.                ustar
  226.                     The POSIX.1 tar format.  Also recognizes GNU ttttaaaarrrr
  227.                     archives, which are similar but not identical.
  228.  
  229.           -_i, --_e_x_t_r_a_c_t
  230.                Run in copy-in mode.
  231.  
  232.           -_I _a_r_c_h_i_v_e
  233.                Archive filename to use instead of standard input.  To
  234.                use a tape drive on another machine as the archive, use
  235.                a filename that starts with `HOSTNAME:'.  The hostname
  236.                can be preceded by a username and an `@' to access the
  237.                remote tape drive as that user, if you have permission
  238.                to do so (typically an entry in that user's `~/.rhosts'
  239.                file).
  240.  
  241.           -_k   Ignored; for compatibility with other versions of ccccppppiiiioooo.
  242.  
  243.           -_l, --_l_i_n_k
  244.                Link files instead of copying them, when possible.
  245.  
  246.           -_L, --_d_e_r_e_f_e_r_e_n_c_e
  247.                Dereference symbolic links (copy the files that they
  248.                point to instead of copying the links).
  249.  
  250.           -_m, --_p_r_e_s_e_r_v_e-_m_o_d_i_f_i_c_a_t_i_o_n-_t_i_m_e
  251.                Retain previous file modification times when creating
  252.                files.
  253.  
  254.           -_M _M_E_S_S_A_G_E, --_m_e_s_s_a_g_e=_M_E_S_S_A_G_E
  255.                Print MESSAGE when the end of a volume of the backup
  256.                media (such as a tape or a floppy disk) is reached, to
  257.                prompt the user to insert a new volume.  If MESSAGE
  258.  
  259.  
  260.  
  261.      Page 4                                           (printed 3/9/94)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      CCCCPPPPIIIIOOOO((((1111LLLL))))                  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                  CCCCPPPPIIIIOOOO((((1111LLLL))))
  269.  
  270.  
  271.  
  272.                contains the string "%d", it is replaced by the current
  273.                volume number (starting at 1).
  274.  
  275.           -_n, --_n_u_m_e_r_i_c-_u_i_d-_g_i_d
  276.                In the verbose table of contents listing, show numeric
  277.                UID and GID instead of translating them into names.
  278.  
  279.            --_n_o-_p_r_e_s_e_r_v_e-_o_w_n_e_r
  280.                In copy-in mode and copy-pass mode, do not change the
  281.                ownership of the files; leave them owned by the user
  282.                extracting them.  This is the default for non-root
  283.                users, so that users on System V don't inadvertantly
  284.                give away files.
  285.  
  286.           -_o, --_c_r_e_a_t_e
  287.                Run in copy-out mode.
  288.  
  289.           -_O _a_r_c_h_i_v_e
  290.                Archive filename to use instead of standard output.  To
  291.                use a tape drive on another machine as the archive, use
  292.                a filename that starts with `HOSTNAME:'.  The hostname
  293.                can be preceded by a username and an `@' to access the
  294.                remote tape drive as that user, if you have permission
  295.                to do so (typically an entry in that user's `~/.rhosts'
  296.                file).
  297.  
  298.           -_p, --_p_a_s_s-_t_h_r_o_u_g_h
  299.                Run in copy-pass mode.
  300.  
  301.           -_r, --_r_e_n_a_m_e
  302.                Interactively rename files.
  303.  
  304.           -_R [_u_s_e_r][:.][_g_r_o_u_p], --_o_w_n_e_r [_u_s_e_r][:.][_g_r_o_u_p]
  305.                In copy-out and copy-pass modes, set the ownership of
  306.                all files created to the specified user and/or group.
  307.                Either the user or the group, or both, must be present.
  308.                If the group is omitted but the ":" or "." separator is
  309.                given, use the given user's login group.  Only the
  310.                super-user can change files' ownership.
  311.  
  312.           -_s, --_s_w_a_p-_b_y_t_e_s
  313.                In copy-in mode, swap the bytes of each halfword (pair
  314.                of bytes) in the files.
  315.  
  316.           -_S, --_s_w_a_p-_h_a_l_f_w_o_r_d_s
  317.                In copy-in mode, swap the halfwords of each word (4
  318.                bytes) in the files.
  319.  
  320.           -_t, --_l_i_s_t
  321.                Print a table of contents of the input.
  322.  
  323.           -_u, --_u_n_c_o_n_d_i_t_i_o_n_a_l
  324.  
  325.  
  326.  
  327.      Page 5                                           (printed 3/9/94)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      CCCCPPPPIIIIOOOO((((1111LLLL))))                  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                  CCCCPPPPIIIIOOOO((((1111LLLL))))
  335.  
  336.  
  337.  
  338.                Replace all files, without asking whether to replace
  339.                existing newer files with older files.
  340.  
  341.           -_v, --_v_e_r_b_o_s_e
  342.                List the files processed, or with -_t, give an `ls -l'
  343.                style table of contents listing.  In a verbose table of
  344.                contents of a ustar archive, user and group names in
  345.                the archive that do not exist on the local system are
  346.                replaced by the names that correspond locally to the
  347.                numeric UID and GID stored in the archive.
  348.  
  349.           -_V --_d_o_t
  350.                Print a "." for each file processed.
  351.  
  352.           --_v_e_r_s_i_o_n
  353.                Print the ccccppppiiiioooo program version number and exit.
  354.  
  355.           The long-named options can be introduced with `+' as well as
  356.           `--', for compatibility with previous releases.  Eventually
  357.           support for `+' will be removed, because it is incompatible
  358.           with the POSIX.2 standard.
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                                           (printed 3/9/94)
  394.  
  395.  
  396.  
  397.